package com.twu.biblioteca.Menus;

import com.twu.biblioteca.Movies.Movie;
import com.twu.biblioteca.Movies.MovieCollection;

import java.util.List;

public class MovieMenu implements Menu{
    @Override
    public void menuMessages() {
        movieMenuHeadInfo();
        MovieCollection movieCollection = new MovieCollection();
        List<Movie> movieList = movieCollection.getAllMovies();
        for(Movie movie : movieList){
            System.out.println(movie.getName()+"\t"+movie.getCreateYear()+"\t"+
            movie.getDirector()+"\t"+movie.getRating());
        }
    }

    private void movieMenuHeadInfo(){
        System.out.println("Movie\tYear\tDirector\tRating");
    }
}
